﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace UI.gongwen
{
    public partial class feedback : Form
    {
        public feedback()
        {
            InitializeComponent();
        }

        private void skinDataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void feedback_Load(object sender, EventArgs e)
        {
            DataTable table = new DataTable();
            table = DAL.UserServer.Selectfeedback().Tables[0];
            skinDataGridView1.DataSource = table;
            DataColumn newCol = new DataColumn("通过");
            table.Columns.Add(newCol);
            for (int i = 0; i < table.Rows.Count; i++)
            {
                if (Convert.ToBoolean(table.Rows[i][1]) == true)
                {
                    table.Rows[i][3] = "是";
                }
                else {
                    table.Rows[i][3] = "否";
                }
            }
            table.Columns.RemoveAt(1);

        }
    }
}
